<?php 

require_once("../Watajax.class.php");

$w = new WatajaxArray();
$w->columns = array(
	"id" => array("name" => "#", "sort_type" => "numeric", "hide" => true),
	"firstname" => array("name" => "First name"),
	"lastname" => array("name" => "Last name"),
	"email" => array("name" => "E-mail adress", "transform" => "<a href=\"mailto:!email\">!email</a>"),
	"tools" => array("name" => "#", "virtual" => true, "transform" => "<a href=\"?edit=!id\">edit</a>")	
);
$w->data = array(
	array("ID" => 1, "firstname" => "Christoffer", "lastname" => "Sandberg", "email" => "<a href=\"mailto:christoffer@westart.se\">christoffer@westart.se</a>"),
	array("ID" => 2, "firstname" => "Stefan", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 3, "firstname" => "Jens", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 4, "firstname" => "Henrik", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 5, "firstname" => "Klas", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 6, "firstname" => "Mossan", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 7, "firstname" => "Erik", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 8, "firstname" => "Christoffer", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 9, "firstname" => "Stefan", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 10, "firstname" => "Jens", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 11, "firstname" => "Henrik", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 12, "firstname" => "Klas", "lastname" => "Sandberg", "email" => "christoffer@westart.se"),
	array("ID" => 13, "firstname" => "Mossan", "lastname" => "Sandberg", "email" => "christoffer@westart.se")
);

$w->run();

?>